<template>
    <!-- 工作台组件 -->
    <entity-manager :fields="fields" :queryFields="queryFields" apiPrefix="/base/workbench-cmp" :tree="false" ref="entityManagerRef" :params="params"
                    operationsWidth="230px">
    </entity-manager>
</template>

<script setup>

import { ref } from "vue"

const fields = [
	{label: "组件编码", prop: "code", max: 64},
	{label: "组件分类id", prop: "categoryId", max: 64},
	{label: "组件名称", prop: "name", max: 255},
	{label: "组件示意图", prop: "image", max: 255},
	{label: "组件配置", prop: "config", max: 255},
	{label: "组件已发布配置", prop: "publishedConfig", max: 255},
	{label: "组件描述", prop: "remark", max: 255},
	{label: "组件使用次数", prop: "usedCount", },
	{label: "组件状态", prop: "status", max: 16},
	{label: "组件排序", prop: "sort", },
    {label: "添加时间", prop: "createTime", width: "160px", system: true},
    {label: "修改时间", prop: "updateTime", width: "160px", system: true}
]
const queryFields = []
const entityManagerRef = ref()
const params = ref({})

function reload() {
    entityManagerRef.value.reload()
}
</script>